#ifndef SHAREFILE_H
#define SHAREFILE_H

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QButtonGroup>
#include <QScrollArea>
#include <QListWidget>

class ShareFile : public QWidget
{
    Q_OBJECT
public:
    explicit ShareFile(QWidget *parent = nullptr);

    static ShareFile& getInstance();

    void update_friend(QListWidget* friend_list);

private:
    QPushButton* m_select_all_pb;
    QPushButton* m_cancel_select_pb;

    QPushButton* m_ok_pb;
    QPushButton* m_cancel_pb;

    QScrollArea* m_scroll_area;
    QWidget* m_friend_w;
    QButtonGroup* m_button_group;
    QVBoxLayout* m_friend_w_vbl;

    void test();

signals:
};

#endif // SHAREFILE_H
